PKG_NAME = nodejs
# https://github.com/nodejs/release#release-schedule
# v20 is Maintenance Version "Iron" since 2024-10-22 with EOL at 2026-04-30
# v22 is Maintenance Version "Jod" since 2025-10-21 with EOL at 2027-04-30
# v24 is LTS Version "Krypton" from 2025-10-28 to 2026-10-20 with EOL at 2028-04-30
PKG_VERS = 24.11.1
PKG_EXT = tar.xz
PKG_DIST_NAME = node-v$(PKG_VERS)-linux-x64.$(PKG_EXT)
PKG_DIST_SITE = https://nodejs.org/dist/v$(PKG_VERS)
PKG_DIR = node-v$(PKG_VERS)-linux-x64

HOMEPAGE = https://nodejs.org/
COMMENT  = JavaScript runtime built on Chrome's V8 JavaScript engine.
LICENSE  = https://github.com/nodejs/node/blob/master/LICENSE

INSTALL_TARGET = nodejs-install

include ../../mk/spksrc.native-install.mk

.PHONY: nodejs-install
nodejs-install:
	@mv -f $(WORK_DIR)/$(PKG_DIR)/ $(WORK_DIR)/node/
